#pragma once
class CIniFile
{
protected:
	char m_filename[300];

public:
	CIniFile(void);
	~CIniFile(void);
	void CIniFile::Create(LPCSTR filename);
	BOOL CIniFile::ReadStruct(LPCSTR Section, LPCSTR Key, LPVOID lpStruct, UINT uSizeStruct);
	void CIniFile::ReadString(LPCSTR Section, LPCSTR Key, LPCSTR szDefault, LPSTR szVal, int len=256);
	int  CIniFile::ReadInt(LPCSTR Section, LPCSTR Key, int nDefault);
	BOOL CIniFile::WriteStruct(LPCSTR Section, LPCSTR Key, LPVOID lpStruct, UINT uSizeStruct);
	BOOL CIniFile::WriteString(LPCSTR Section, LPCSTR Key, LPCSTR lpString);
	BOOL CIniFile::WriteInt(LPCSTR Section, LPCSTR Key, int nValue);
};

